package com.shell.governor.access.service.impl;

import com.shell.bee.persistence.annotation.Pagination;
import com.shell.bee.persistence.model.PageLimit;
import com.shell.bee.persistence.service.impl.PersistentServiceImpl;
import com.shell.governor.access.dao.PubAccessDao;
import com.shell.governor.access.po.PubAccess;
import com.shell.governor.access.service.PubAccessService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PubAccessServiceImpl extends PersistentServiceImpl<PubAccess> implements PubAccessService {
	@Autowired
	private PubAccessDao pubAccessDao;

	@Pagination
	public List<PubAccess> selectPubAccessByPage(PageLimit limit) {
		return selectAll();
	}

	public List<PubAccess> selectByKeys(String[] tagCodes) {
		return this.pubAccessDao.selectByKeys(tagCodes);
	}
}
